export default {
  getMaterialDetails(code, id) {
    return {
      name: '通过制造商零件编号获取物料信息',
      url: `/center/materiel/getMaterielByPartNumAndBrand/${code}/${id}`,
      method: 'get',
    }
  },
  getMaterialInventoryByPartNum(partNum) {
    return {
      name: '获取物料信息',
      url: `/mall/inventory/getMaterialInventoryByPartNum/${partNum}`,
      method: 'get',
    }
  },
  saveToContainer(data){
    return {
      name: '货柜准备放至货柜中',
      url: `/mall/inventory/saveToContainer`,
      method: 'POST',
      data,
      errLog: true
    }
  },
  saveToSelling(data){
    return {
      name: '货柜准备直接上架',
      url: `/mall/inventory/saveToSelling`,
      method: 'POST',
      data,
      errLog: true
    }  
  },
  getDetailByMaterialIds(query){
    return {
      name: '商城根据物料ids获取物料明细',
      url: `/center/materiel/getDetailByMaterialIds?${query}`,
      method: 'GET'
    }  
  },
  inventoryAdjustment(data){
    return {
      name: '调整库存',
      url: `/mall/inventory/inventoryAdjustment`,
      method: 'POST',
      data,
      errLog: true
    }
  },
  priceAdjustment(data){
    return {
      name: '价格设置',
      url: `/mall/inventory/priceAdjustment`,
      method: 'POST',
      data,
      errLog: true
    }
  },
  warnInventorySet(data){
    return {
      name: '库存预警设置',
      url: `/mall/inventory/warnInventorySet`,
      method: 'POST',
      data,
      errLog: true
    }
  }
}